package <%- domain_package %>;

import act.db.DB;
import com.github.d925529.apidoc.annotation.ApiField;
import org.beetl.sql.core.annotatoin.AssignID;
import org.beetl.sql.core.annotatoin.Table;
import org.beetl.sql.core.mapper.BaseMapper;

import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;

/**
 * 说明：<%- title %>
 * 作者：<%- user %>
 * 日期：<%- time %>
 * 版本：1.0.0
 */
@Table(name = "<%- tableName %>")
@SuppressWarnings("unused")
public class <%- ClassName %> implements Serializable {<% fields.forEach(function(ele){%><%if(ele.isId){%>
    @AssignID<%}%>
    //<%- ele.comment %>
    @ApiField("<%- ele.comment %>")
    private <%- ele.type %> <%- ele.name %>;
    <% }) %>

    <% fields.forEach(function(ele){%>
    /**
     * @return <%- ele.comment %>
     */
    public <%- ele.type %> get<%- ele.Name %>(){
        return <%- ele.name %>;
    }
    /**
     * @param <%-ele.name%> <%- ele.comment %>
     */
    public void set<%-ele.Name%>(<%-ele.type%> <%-ele.name%>){
        this.<%- ele.name%> = <%- ele.name%>;
    }
    <% }) %>


    public interface Mapper extends BaseMapper<<%- ClassName %>> {
    }
}